<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
  <link rel="stylesheet" type="text/css" href="css/bootstrap.css">
  <link rel="stylesheet" type="text/css" href="css/app.css">
	<title>login</title>

</head>
<body>
	<div class="container">

        <form class="form-signin">
          <h2 class="form-signin-heading">请登录</h2>
          <input type="text" class="input-block-level" placeholder="邮箱">
          <input type="password" class="input-block-level" placeholder="密码">
          <label class="checkbox">
            <input type="checkbox" value="remember-me"> 记住密码
          </label>
          <button class="btn btn-large btn-primary" type="submit" id="bid">登录</button>
        </form>

      </div> <!-- /container -->
      <script type="text/javascript" src="js/jquery.js"></script>
    <script type="text/javascript">
        $(document).ready(function() {
          // body...
          $('#bid').submit(login());
        })  
           function login() {
          // body...
          window.open("index.html","_self")
        }
    </script>
</body>
</html>